﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace BacteriaSimulation.Simulation
{
    public abstract class AbstractTask : ITask
    {
        protected ITask successor;

        void ITask.SetSuccessor(ITask successor)
        {
            this.successor = successor;
        }

        ITask ITask.GetSuccessor()
        {
            return this.successor;
        }

        public abstract TaskOutcome executeTask(Simulation simulation, Bacterium bacterium, SimulationEnvironment env);
    }
}
